package com.atguigu.spzx.manage.service.Impl;

import com.atguigu.spzx.manage.mapper.BannerMapper;
import com.atguigu.spzx.manage.service.BannerService;
import com.atguigu.spzx.model.entity.system.Banner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerServiceImpl implements BannerService {
    @Autowired
    private BannerMapper bannerMapper;

    @Override
    public List<Banner> getBanner() {
        List<Banner> bannerList=bannerMapper.getBanner();
        return bannerList;
    }

    @Override
    public void saveBanner(Banner banner) {
        bannerMapper.saveBanner(banner);


    }

    @Override
    public void deleteById(Long id) {
        bannerMapper.deleteById(id);
    }

    @Override
    public void updateBanner(Banner banner) {
        bannerMapper.updateBanner(banner);

    }




}
